<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Praca magisterska: Dokumentacja struktury SignalReaderWriter</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  <td id="projectlogo"><img alt="Logo" src="logo_eti_small.png"/></td>
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Praca magisterska
   
   </div>
   <div id="projectbrief">Implementacja algorytmów filtracji adaptacyjnej o strukturze transwersalnej na platformie CUDA</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Wygenerowano przez Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Szukaj');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Strona&#160;główna</span></a></li>
      <li class="current"><a href="annotated.html"><span>Klasy</span></a></li>
      <li><a href="files.html"><span>Pliki</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Szukaj" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Lista&#160;klas</span></a></li>
      <li><a href="classes.html"><span>Indeks&#160;klas</span></a></li>
      <li><a href="functions.html"><span>Składowe&#160;klas</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('struct_signal_reader_writer.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#nested-classes">Komponenty</a> &#124;
<a href="#pub-methods">Metody publiczne</a> &#124;
<a href="#pub-attribs">Atrybuty publiczne</a>  </div>
  <div class="headertitle">
<div class="title">Dokumentacja struktury SignalReaderWriter</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="SignalReaderWriter" -->
<p>Odczytywanie i zapisywanie sygnałów wejściowych i wyjściowych.  
 <a href="struct_signal_reader_writer.html#details">Więcej...</a></p>

<p><code>#include &lt;<a class="el" href="signal_reader_writer_8h_source.html">signalReaderWriter.h</a>&gt;</code></p>

<p><a href="struct_signal_reader_writer-members.html">Lista wszystkich składowych.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="nested-classes"></a>
Komponenty</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_signal_reader_writer_1_1_filepaths.html">Filepaths</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Ścieżki do plików wejściowych i wyjściowych.  <a href="struct_signal_reader_writer_1_1_filepaths.html#details">Więcej...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_signal_reader_writer_1_1_files.html">Files</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Wskaźniki do plików wejściowych i wyjściowych.  <a href="struct_signal_reader_writer_1_1_files.html#details">Więcej...</a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Metody publiczne</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_signal_reader_writer.html#a4d572fa1e3bfc3cdbc3ee09b4a79dc8d">SignalReaderWriter</a> (char *inputSignalFilepath, char *desiredSignalFilepath, int Bsize)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_signal_reader_writer.html#aa1fb4433892c7198331319455c740829">~SignalReaderWriter</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_signal_reader_writer.html#aa1b412ffbdc6c1beed967666ff21687f">readInputBlocks</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_signal_reader_writer.html#a7b4182774269aea762ba7dc31a81a82a">writeErrorBlock</a> (cudacomplex *buf)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_signal_reader_writer.html#ae1012e64eb123e6d7a10ce3c6602b588">readInputSignals</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_signal_reader_writer.html#aff17d6998f6ff119684556f827330683">writeErrorSignal</a> (char *errorSignalFilepath)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_signal_reader_writer.html#a1fb12863e48b8ab9fcc9b3d1ce25d8b5">freeMemory</a> ()</td></tr>
<tr><td colspan="2"><h2><a name="pub-attribs"></a>
Atrybuty publiczne</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a46dcf02abcf41209b6038e6243462cfb"></a><!-- doxytag: member="SignalReaderWriter::u" ref="a46dcf02abcf41209b6038e6243462cfb" args="" -->
cudacomplex *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_signal_reader_writer.html#a46dcf02abcf41209b6038e6243462cfb">u</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">sygnał wejściowy (input) <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2b204b3f72f3f4d8531e4bfe4cab70c2"></a><!-- doxytag: member="SignalReaderWriter::d" ref="a2b204b3f72f3f4d8531e4bfe4cab70c2" args="" -->
cudacomplex *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_signal_reader_writer.html#a2b204b3f72f3f4d8531e4bfe4cab70c2">d</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">sygnał odniesienia (desired) <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2d23da95ac0e9d8bcfe6cd651f76a4b8"></a><!-- doxytag: member="SignalReaderWriter::e" ref="a2d23da95ac0e9d8bcfe6cd651f76a4b8" args="" -->
cudacomplex *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_signal_reader_writer.html#a2d23da95ac0e9d8bcfe6cd651f76a4b8">e</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">sygnał wyściowy błędu (error) <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a91ac8a79f0e01facfa085fb37d1ee8f4"></a><!-- doxytag: member="SignalReaderWriter::B" ref="a91ac8a79f0e01facfa085fb37d1ee8f4" args="" -->
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_signal_reader_writer.html#a91ac8a79f0e01facfa085fb37d1ee8f4">B</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">wielkość bloku <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="acc0f5d183017834876f1ea6fd43cde6a"></a><!-- doxytag: member="SignalReaderWriter::numberOfSamples" ref="acc0f5d183017834876f1ea6fd43cde6a" args="" -->
long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_signal_reader_writer.html#acc0f5d183017834876f1ea6fd43cde6a">numberOfSamples</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">całkowita liczba próbek sygnałów <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0bf1b424ab98800b360b6d5598863dcf"></a><!-- doxytag: member="SignalReaderWriter::samplesRead" ref="a0bf1b424ab98800b360b6d5598863dcf" args="" -->
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_signal_reader_writer.html#a0bf1b424ab98800b360b6d5598863dcf">samplesRead</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">liczba odczytanych próbek, przy odczytywaniu blokowym <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0ffec1481ad86456a127b10f2c437d0e"></a><!-- doxytag: member="SignalReaderWriter::samplesWritten" ref="a0ffec1481ad86456a127b10f2c437d0e" args="" -->
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_signal_reader_writer.html#a0ffec1481ad86456a127b10f2c437d0e">samplesWritten</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">liczba zapisanych próbek, przy zapisywaniu blokowym <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a64302ec2cbfca1b99bb7956698fb2f12"></a><!-- doxytag: member="SignalReaderWriter::files" ref="a64302ec2cbfca1b99bb7956698fb2f12" args="" -->
struct <a class="el" href="struct_signal_reader_writer_1_1_files.html">SignalReaderWriter::Files</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_signal_reader_writer.html#a64302ec2cbfca1b99bb7956698fb2f12">files</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">wskaźniki do plików wejściowych i wyjściowych <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac4ccc40051d7110691bec3f94bb174fa"></a><!-- doxytag: member="SignalReaderWriter::filepaths" ref="ac4ccc40051d7110691bec3f94bb174fa" args="" -->
struct <br class="typebreak"/>
<a class="el" href="struct_signal_reader_writer_1_1_filepaths.html">SignalReaderWriter::Filepaths</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_signal_reader_writer.html#ac4ccc40051d7110691bec3f94bb174fa">filepaths</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">ścieżki do plików wejściowych i wyjściowych. <br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Opis szczegółowy</h2>
<div class="textblock"><p>Odczytywanie i zapisywanie sygnałów wejściowych i wyjściowych. </p>
</div><hr/><h2>Dokumentacja konstruktora i destruktora</h2>
<a class="anchor" id="a4d572fa1e3bfc3cdbc3ee09b4a79dc8d"></a><!-- doxytag: member="SignalReaderWriter::SignalReaderWriter" ref="a4d572fa1e3bfc3cdbc3ee09b4a79dc8d" args="(char *inputSignalFilepath, char *desiredSignalFilepath, int Bsize)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">SignalReaderWriter::SignalReaderWriter </td>
          <td>(</td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>inputSignalFilepath</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>desiredSignalFilepath</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>Bsize</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Konstruktor struktury <a class="el" href="struct_signal_reader_writer.html" title="Odczytywanie i zapisywanie sygnałów wejściowych i wyjściowych.">SignalReaderWriter</a>.<br/>
 Ustawienie ścieżek plków sygnałów wejściowych oraz otwarcie tych plików.<br/>
 Sygnały muszą być zapisane w dwóch plikach binarnych z rozszerzeniem .dat (jeden zawierający część rzeczywistą, drugi część urojoną).<br/>
 Plik z danymi rzeczywistymi musi kończyć się przyrostkiem _real.<br/>
 Plik z danymi urojonymi musi kończyć się przyrostkiem _imag.<br/>
 Nazwa poprzedzająca przyrostek musi być taka sama dla dwóch plików danego sygnału.<br/>
</p>
<dl><dt><b>Parametry:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">*inputSignalFilepath</td><td>- ścieżka dla sygnału wejściowego (input), np.: C:/dane/u </td></tr>
    <tr><td class="paramname">*desiredSignalFilepath</td><td>- ścieżka dla sygnału odniesienia (desired), np.: C:/dane/d </td></tr>
    <tr><td class="paramname">Bsize</td><td>- wielkość bloku danych </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="aa1fb4433892c7198331319455c740829"></a><!-- doxytag: member="SignalReaderWriter::~SignalReaderWriter" ref="aa1fb4433892c7198331319455c740829" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">SignalReaderWriter::~SignalReaderWriter </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Destruktor struktury <a class="el" href="struct_signal_reader_writer.html" title="Odczytywanie i zapisywanie sygnałów wejściowych i wyjściowych.">SignalReaderWriter</a>. </p>

</div>
</div>
<hr/><h2>Dokumentacja funkcji składowych</h2>
<a class="anchor" id="a1fb12863e48b8ab9fcc9b3d1ce25d8b5"></a><!-- doxytag: member="SignalReaderWriter::freeMemory" ref="a1fb12863e48b8ab9fcc9b3d1ce25d8b5" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SignalReaderWriter::freeMemory </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Metoda zwalniająca pamięć po strukturze <a class="el" href="struct_signal_reader_writer.html" title="Odczytywanie i zapisywanie sygnałów wejściowych i wyjściowych.">SignalReaderWriter</a> i zamykająca pliki.</p>
<dl class="return"><dt><b>Zwraca:</b></dt><dd>void </dd></dl>

</div>
</div>
<a class="anchor" id="aa1b412ffbdc6c1beed967666ff21687f"></a><!-- doxytag: member="SignalReaderWriter::readInputBlocks" ref="aa1b412ffbdc6c1beed967666ff21687f" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SignalReaderWriter::readInputBlocks </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Metoda odczytująca blok (porcję) danych wejściowych.</p>
<dl class="return"><dt><b>Zwraca:</b></dt><dd>void </dd></dl>

</div>
</div>
<a class="anchor" id="ae1012e64eb123e6d7a10ce3c6602b588"></a><!-- doxytag: member="SignalReaderWriter::readInputSignals" ref="ae1012e64eb123e6d7a10ce3c6602b588" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SignalReaderWriter::readInputSignals </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Metoda odczytująca w całości sygnały wejściowe (input, desired) z plików.<br/>
 Ustawia zmienną numberOfSamples.</p>
<dl class="return"><dt><b>Zwraca:</b></dt><dd>void </dd></dl>

</div>
</div>
<a class="anchor" id="a7b4182774269aea762ba7dc31a81a82a"></a><!-- doxytag: member="SignalReaderWriter::writeErrorBlock" ref="a7b4182774269aea762ba7dc31a81a82a" args="(cudacomplex *buf)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SignalReaderWriter::writeErrorBlock </td>
          <td>(</td>
          <td class="paramtype">cudacomplex *&#160;</td>
          <td class="paramname"><em>buf</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Metoda dopisująca do pliku blok (porcję) danych wyjściowych.</p>
<dl><dt><b>Parametry:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">*buf</td><td>- bufor z blokiem do zapisania </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Zwraca:</b></dt><dd>void </dd></dl>

</div>
</div>
<a class="anchor" id="aff17d6998f6ff119684556f827330683"></a><!-- doxytag: member="SignalReaderWriter::writeErrorSignal" ref="aff17d6998f6ff119684556f827330683" args="(char *errorSignalFilepath)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SignalReaderWriter::writeErrorSignal </td>
          <td>(</td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>errorSignalFilepath</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Metoda zapisująca sygnał błędu (error) do plików binarnych.<br/>
 Odzielny plik dla części rzeczywistej i urojonej (przyrostki nazw plków odpowienio: _real, _imag).</p>
<dl><dt><b>Parametry:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">*errorSignalFilepath</td><td>- ścieżka do pliku z sygnałem błędu (error), np.: C:/dane/e </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Zwraca:</b></dt><dd>void </dd></dl>

</div>
</div>
<hr/>Dokumentacja dla tej struktury została wygenerowana z plików:<ul>
<li>C:/Users/boski/Documents/Visual Studio 2008/Projects/cuda/blms/<a class="el" href="signal_reader_writer_8h_source.html">signalReaderWriter.h</a></li>
<li>C:/Users/boski/Documents/Visual Studio 2008/Projects/cuda/blms/<a class="el" href="signal_reader_writer_8cu.html">signalReaderWriter.cu</a></li>
</ul>
</div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="struct_signal_reader_writer.html">SignalReaderWriter</a>      </li>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Klasy</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Pliki</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Funkcje</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Zmienne</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Definicje</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>


    <li class="footer">Wygenerowano Wed Nov 23 2011 12:30:13 dla Praca magisterska programem
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.5.1 </li>
   </ul>
 </div>


</body>
</html>
